Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for using this thread pool with coroutines #14

Draft
wants to merge 36 commits into
base: master
Choose a base branch
from

Conversation

DeveloperPaul123
Copy link
Owner

@DeveloperPaul123 DeveloperPaul123 commented Sep 12, 2022

Note
This is on hold until I can ensure that the necessary build flags are properly set in the dp::thread-pool for coroutine support. It seems that down-stream projects for coroutines don't set these in the targets properly but I want dp::thread-pool to do this.

Changes

  • Updated CPM.cmake version
  • Added schedule() function to allow for running coroutines on the thread pool
  • Added batch enqueue() function to better compare to coroutine performance

DeveloperPaul123 and others added 30 commits September 12, 2022 12:43
Added a basic awaitable type and function to allow for running coroutines on the thread pool
Add ability to enqueue a range of void() functions
Also changed benchmarks so that only 1 runs in debug mode for the dp::thread_pool
Removed modulus calculation for assigning tasks to thread queues.
Use feature test macro from C++20's `<version>` header to check for `std::move_only_function` support
Added a basic awaitable type and function to allow for running coroutines on the thread pool
Add ability to enqueue a range of void() functions
Also changed benchmarks so that only 1 runs in debug mode for the dp::thread_pool
Removed modulus calculation for assigning tasks to thread queues.
@DeveloperPaul123 DeveloperPaul123 changed the title Adding support for using this thread pool with coroutines Add support for using this thread pool with coroutines May 31, 2023
Copy link

sonarcloud bot commented Aug 14, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
B Maintainability Rating on New Code (required ≥ A)
E Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant